package com.imooc.springboot.dubbo.nilinili.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.imooc.springboot.dubbo.nilinili.provider.mapper.AvatarMapper;
import com.imooc.springboot.dubbo.nilinili.res.CodeEnum;
import com.imooc.springboot.dubbo.nilinili.res.ResultFactory;
import com.imooc.springboot.dubbo.nilinili.service.AvatarService;
import org.springframework.beans.factory.annotation.Autowired;

@Service(interfaceClass = AvatarService.class)
public class AvatarServiceImpl implements AvatarService {

    @Autowired
    private AvatarMapper avatarMapper;

    @Override
    public String getAllAvatars() {
        return ResultFactory.createResult(CodeEnum.SUCCESS,"查询成功",avatarMapper.getAllAvatar());
    }

}
